//
//  UIFontMacros.h
//  ACE
//
//  Created by Mickey Yin on 2021/12/1.
//

#ifndef FontMacros_h
#define FontMacros_h

#pragma mark ---- 常用字体
#define kFontWithNameAndSize(fontName, fontSize) [UIFont fontWithName:fontName size:(fontSize)] ?: [UIFont systemFontOfSize:(fontSize)]

// 默认 常规字体
#define FONT(s) [UIFont systemFontOfSize:s]
// 默认 常规斜体
#define FONT_Italic(s) [UIFont fontWithName:@"HelveticaNeue-Italic" size:s]
// 默认 偏细字体
#define FONT_Light(s) [UIFont fontWithName:@"HelveticaNeue-Light" size:s]
// 默认 偏细斜体
#define FONT_LightItalic(s) [UIFont fontWithName:@"HelveticaNeue-LightItalic" size:s]
// 默认 细体
#define FONT_Thin(s) [UIFont fontWithName:@"HelveticaNeue-Thin" size:s]
// 默认 细斜体
#define FONT_ThinItalic(s) [UIFont fontWithName:@"HelveticaNeue-ThinItalic" size:s]
// 默认 加粗字体
#define FONT_Blod(s) [UIFont boldSystemFontOfSize:s]
// 默认 加粗斜体
#define FONT_BoldItalic(s) [UIFont fontWithName:@"HelveticaNeue-BoldItalic" size:s]
// 默认 中粗字体
#define FONT_Medium(s) [UIFont fontWithName:@"HelveticaNeue-Medium" size:s]
// 默认 中粗斜体
#define FONT_MediumItalic(s) [UIFont fontWithName:@"HelveticaNeue-MediumItalic" size:s]
// 数字字体加粗
#define FONT_DINMediumWithSize(fontSize) kFontWithNameAndSize(@"DIN-Medium", (fontSize))
// 平方细体
#define PF_THIN(s) [UIFont fontWithName:@"PingFangSC-Thin" size:s]
// 平方字体加粗
#define PF_Medium(s)  [UIFont fontWithName:@"PingFangSC-Medium" size:s]

#define kAutoFont(value) (iPhone6 ? value : (value - 1))
#define customTitleFont [UIFont systemFontOfSize:17.0]




#endif /* FontMacros_h */
